package com.web.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.web.model.AllproModel;
import com.web.model.DetailModel;
import com.web.model.PersondetailModel;
import com.web.model.ResultModel;
import com.web.params.ViewnumParams;
import com.web.params.newpawParams;

public interface InfoMapper {
	int LikeAdd(int userId);
	int change(newpawParams params);
	 @Select("select password from td_user where username = #{username}")
     String haspwd(String username);
     List<ResultModel> listresult(@Param("username")String username);
     List<DetailModel> getdetail(@Param("userId") int userId);
     PersondetailModel getperson(@Param("userId") int userId);
     int updateview(ViewnumParams params);
     int insertTwo(@Param("userId")Integer userId,@Param("theme")String theme);
     int insertOne(@Param("userId")Integer userId,@Param("title")String title,@Param("mailbox")String mailbox);
      List<AllproModel>getall();
      List<AllproModel> getper(@Param("userId")int userId);
      
     int deleteTop(int topicId);
 }
